<include file="Public/head" />

<body>
  <div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span> {:L("bianji")}</strong></div>
    <div class="body-content">
      <form method="post" class="form-x" action="?" enctype="multipart/form-data">
        <foreach name = 'info' item="v">
        <div class="form-group">
          <div class="label">
            <label>{:L('qingshuru')}{:L('menmianmingcheng')}：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_name" data-validate="required:{:L('qingshuru')}{:L('menmianmingcheng')}" value="{$v['store_name']}"/>
            <div class="tips"></div>
          </div>
        </div>

          <div class="form-group">
            <div class="label">
              <label>请输入门面appId：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="appid" value="{$v['appid']}" data-validate="required:请输入门面appId"/>
              <div class="tipss"></div>
            </div>
          </div>

          <div class="form-group">
            <div class="label">
              <label>appsecret：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="secret" value="{$v['secret']}" data-validate="required:请输入门面appsecret"/>
              <div class="tipss"></div>
            </div>
          </div>

          <div class="form-group">
            <div class="label">
              <label>请输入门面app_key：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="app_key" value="{$v['app_key']}" data-validate="required:请输入门面app_key"/>
              <div class="tipss"></div>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label>请输入门面商户号：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="mch_id" value="{$v['mch_id']}" data-validate="required:请输入门面商户号"/>
              <div class="tipss"></div>
            </div>
          </div>

        <div class="form-group">
          <div class="label">
            <label>{:L('qingshuru')}{:L('menmiandizhi')}：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_address" data-validate="required:{:L('qingshuru')}{:L('menmiandizhi')}" value="{$v['address']}"/>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>请输入门面联系人：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_user" data-validate="required:请输入门面联系人" value="{$v['store_user']}"/>
            <div class="tips"></div>
          </div>
        </div>

          <div class="form-group">
            <div class="label">
              <label>{:L("suolvetu")}：</label>
            </div>
            <div class="field">
              <input type="file" class="button bg-blue" name="cate_thumb" value="+ {:L('liulanshangchuan')}" onchange="preview(this)" style="float: left;">
              <div id="preview" name="img" style="float: left;width: 10%;box-sizing: border-box;" class="input" >
                <if condition="$v['thumb'] eq null">
                  <img src="__PUBLIC__/images/zanwu.jpg" width="100%" />
                  <else />
                  <img src="__ROOT__/{$v['thumb']}" width="100%" />
                </if>
              </div>
              <div class="tipss">{:L("tuijianchicun")}：100*100</div>
            </div>
          </div>
        <div class="form-group">
          <div class="label">
            <label>{:L('qingshuru')}{:L('menmiandianhua')}：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_tel" data-validate="required:{:L('qingshuru')}{:L('menmiandianhua')}" value="{$v['tel']}"/>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>请输入门面营业时间：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_time" data-validate="required:请输入门面营业时间" value="{$v['store_time']}"/>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>{:L('qingshuru')}{:L('menmianyouxiang')}：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_email" data-validate="required:{:L('qingshuru')}{:L('menmianyouxiang')}" value="{$v['email']}"/>
            <div class="tips"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>{:L('qingshuru')}{:L('weixingongzhonghao')}：</label>
          </div>
          <div class="field">
            <input type="text" class="input w50" name="store_public" data-validate="required:{:L('qingshuru')}{:L('weixingongzhonghao')}" value="{$v['wechat_public']}"/>
            <div class="tips"></div>
          </div>
        </div>
          <div class="form-group">
            <div class="label">
              <label>{:L('qingshuru')}{:L('jingdu')}：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="store_public" data-validate="required:{:L('qingshuru')}{:L('jingdu')}" value="{$v['address_lng']}"/>
              <div class="tips"></div>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label>{:L('qingshuru')}{:L('weidu')}：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="store_public" data-validate="required:{:L('qingshuru')}{:L('weidu')}" value="{$v.address_lat}"/>
              <div class="tips">tip:公司经纬度可通过<a href="http://lbs.qq.com/tool/getpoint/index.html" target="_blank">http://lbs.qq.com/tool/getpoint/index.html</a>获取</div>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label>门店简介：</label>
            </div>
            <div class="field">
              <input type="text" class="input w50" name="intro" data-validate="请输入门店简介" value="{$v['intro']}" />
              <div class="tips"></div>
            </div>
          </div>
          <input type="hidden" name="id" value="{$v['s_id']}">
          <input type="hidden" name="conf_id" value="{$v['conf_id']}">
        <div class="form-group">
          <div class="label">
            <label></label>
          </div>
          <div class="field">
            <button class="button bg-main icon-check-square-o" type="submit">{:L('xiugai')}</button>
          </div>
        </div>
      </foreach>
      </form>
    </div>
  </div>
</body>
</html>